package wang.zl.bookmanager1.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 黑马程序员
 * @since 2022-12-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("borrow_detail")
public class Borrow_detail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @TableField(fill = FieldFill.INSERT)
    private Long userId;

    private Long bookId;

    private Integer status;


    @TableField(fill = FieldFill.INSERT)//借阅时间
    private  LocalDateTime borrowTime;


    @TableField(fill = FieldFill.UPDATE)//修改时间
    private LocalDateTime returnTime;

//    //创建人
//    @TableField(fill = FieldFill.INSERT)
//    private Long createUser;
//
//
//    //修改人
//    @TableField(fill = FieldFill.INSERT_UPDATE)
//    private Long updateUser;



}
